<?php

/**
tabular>
âˆ’
<time from="2008-08-06T18:00:00" to="2008-08-07T00:00:00" period="3">
âˆ’
<!--
 Valid from 2008-08-06T18:00:00 to 2008-08-07T00:00:00 
-->
<symbol number="9" name="Regn"/>
<precipitation value="2.5"/>
<!-- Valid at 2008-08-06T18:00:00 -->
<windDirection deg="171.5" code="S" name="SÃ¸r"/>
<windSpeed mps="4.4" name="Lett bris"/>
<temperature unit="celcius" value="19"/>
<pressure unit="hPa" value="1011.0"/>
</time> 

 <symbol id="SNOW" number="13"/>
 */

class forecastModel {

	private $windDir;
    private $windDirTxt;
	private $windSpeed;
	private $temperature;
	private $precipitation;
	private $weatherSymbol;	//array
	private $windSpeedTxt;
	private $weatherSymbolTxt;

	public function __construct(){

	}
        
        /* Getters */
	public function getWindDir(){ return $this->windDir; }
    public function getWindDirTxt(){ return $this->windDirTxt; }
	public function getWindSpeed(){ return $this->windSpeed; }
	public function getWindSpeedTxt(){ return $this->windSpeedTxt; }
	public function getTemperature(){ return $this->temperature; }
	public function getTemperatureRound(){ return round($this->temperature); }
	public function getPrecipitation(){ return $this->precipitation; }
	public function getWeatherSymbol(){ return $this->weatherSymbol; }
	public function getWeatherSymbolTxt(){ return $this->weatherSymbolTxt; }
	

        /* Setters */
	public function setWindDir($param){ $this->windDir = $param; }
    public function setWindDirTxt($param){ $this->windDirTxt = strtolower($param); }
	public function setWindSpeed($param){ $this->windSpeed = $param; }
    public function setWindSpeedTxt($param){ $this->windSpeedTxt = $param; }
	public function setTemperature($param){ $this->temperature = $param; }
	public function setPrecipitation($param){ $this->precipitation = $param; }
	public function setWeatherSymbol($param){ $this->weatherSymbol = $param; }
	public function setWeatherSymbolTxt($param){ $this->weatherSymbolTxt = $param; }
}
?>